package main

import (
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"time"
)

type Person struct {
	Name string
	Age  int
}

func main() {
	person := Person{
		Name: "wwy",
		Age:  12,
	}
	json.NewEncoder(os.Stdout).Encode(person)
	result, _ := json.Marshal(person)
	str := string(result)
	fmt.Println(str)

	<-time.After(time.Second * 3)

	resp, _ := http.Get("https://www.baidu.com")
	fmt.Println(&resp.Body)
}
